HTMLModelElement: autoplay property

The HTMLModelElement.autoplay property reflects the autoplay HTML attribute, indicating whether playback should automatically begin as soon as the model resource is ready and renderable.

Value

A boolean value which is true if the model element will begin playback as soon as the resource is ready.

Examples

html
<model id="model">
  <source src="teapot_animated.usdz" type="model/vnd.usdz+zip" />
</model>
js
// false is the default value
document.querySelector("#model").autoplay = false;

Specifications

No specification found

No specification data found for api.HTMLModelElement.autoplay.
Check for problems with this page or contribute a missing spec_url to mdn/browser-compat-data. Also make sure the specification is included in w3c/browser-specs.

Browser compatibility

See also